﻿using System.Data;

namespace FileUpload.Entity
{
    public class GenerateCheckTemplate
    {
        /// <summary>
        /// 考试任务对象
        /// </summary>
        public ExamData ExamData { get; set; }

        /// <summary>
        /// 数据对应关系对象
        /// </summary>
        public List<Correspondence> SelectData { get; set; }

        /// <summary>
        /// 导入数据
        /// </summary>
        public List<Dictionary<string, string>> tempData { get; set; }

        /// <summary>
        /// 导入数据列集合
        /// </summary>
        public List<Colunm> colunm { get; set; }

        /// <summary>
        /// 场次对象
        /// </summary>
        public tableTimeData tableTimeData { get; set; }
    }


    /// <summary>
    /// 考试任务对象
    /// </summary>
    public class ExamData
    {
        /// <summary>
        /// 简称
        /// </summary>
        public string jiancheng { get; set; }
        /// <summary>
        /// 考试年月
        /// </summary>
        public string kaikaonianyue { get; set; }
        /// <summary>
        /// 简称
        /// </summary>
        public string quancheng { get; set; }
    }
    /// <summary>
    /// 数据对应关系对象
    /// </summary>
    public class Correspondence
    {
        /// <summary>
        /// key
        /// </summary>
        public string key { get; set; }

        /// <summary>
        /// 下拉选择数据
        /// </summary>
        public string selectValue { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 类型 0 固定值 1下拉框选择
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 固定值数据
        /// </summary>
        public string value { get; set; }
    }

    /// <summary>
    /// 表格对象
    /// </summary>
    public class tableTimeData
    {
        /// <summary>
        /// 提交表格数据
        /// </summary>
        public List<ExamTime> data { get; set; }
        /// <summary>
        /// 总数
        /// </summary>
        public int total { get; set; }
    }

    public class ExamTime
    {
        /// <summary>
        /// 场次编码
        /// </summary>
        public int? ExamTimeCode { get; set; }
        /// <summary>
        /// 场次名称
        /// </summary>

        public string ExamTimeName { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public string startTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public string endTime { get; set; }

        /// <summary>
        /// 是否编辑状态
        /// </summary>
        public bool Edit { get; set; }
    }
    /// <summary>
    /// 导入数据列对象
    /// </summary>
    public class Colunm
    {
        /// <summary>
        /// 键值
        /// </summary>
        public string key { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        public string lable { get; set; }
    }
}
